package com.lagou.task10.test;

public class MobilCard {

    private CardTypeEnum cardTypeEnum;//卡类型

    private String cardNum;//卡号

    private String username;//用户名

    private String password;//密码

    private double balance;//余额

    private int talkTime;//通话时长

    private int flow;//上网流量

    public CardTypeEnum getCardTypeEnum() {
        return cardTypeEnum;
    }

    public void setCardTypeEnum(CardTypeEnum cardTypeEnum) {
        this.cardTypeEnum = cardTypeEnum;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }


    public MobilCard() {
    }

    public MobilCard(CardTypeEnum cardTypeEnum, String cardNum, String username, String password, double balance, int talkTime, int flow) {
        this.cardTypeEnum = cardTypeEnum;
        this.cardNum = cardNum;
        this.username = username;
        this.password = password;
        this.balance = balance;
        this.talkTime = talkTime;
        this.flow = flow;
    }

    public void show(){
        System.out.println("卡号为："+getCardNum()+"的用户："+getUsername()+"，当前余额为："+getBalance());

    }
}
